#!/bin/bash
function test
{
    var1=$1
    if [ $var1 = 10 ] ; then
        echo "test function"  
    else
        echo  "don't fit case"
    fi
}

test 10